'use strict';

const Service = require("egg").Service;

class myService extends Service {
  async getUser(id) {
    return {
      id: id
    }
  }
  async getUserList(id) {
    try {
      const app = this.app;
      const res = await app.mysql.get('user');
      return res
    } catch (err) {
      console.log(err);
      return null;
    }
  }
}
module.exports = myService